cmake_minimum_required(VERSION 2.8)
project(cpp2c)

set(CACHE SUPPORT_C:bool OFF)
if(${SUPPORT_C})
	add_definitions(-DSUPPORT_C)
endif()

add_executable(cpp2c cpp2c.c)
add_library(wrapper SHARED wrapper.cpp api.cpp)

target_link_libraries(cpp2c wrapper)
